
class Navigation {
    constructor() {
        this.stack = [];
    }

    pushState(pageInfo){
        const { bridgeId,query,pagePath}=pageInfo;
        this.stack.push({bridgeId,query,pagePath});
        console.log("this.stack1:",this.stack)
    }

    popState(){
        this.stack.pop();
    }

    getCurrentPageInfo(){
        console.log("this.stack2:",this.stack)
        return this.stack[this.stack.length-1] || {};
    }


}
export default new Navigation();